<?php

use yii\helpers\Html;
use yii\widgets\DetailView;

/* @var $this yii\web\View */
/* @var $model common\models\Exhibitor */

$this->title = $model->name;
$this->params['breadcrumbs'][] = ['label' => Yii::t('common', 'exhibitor'), 'url' => ['index']];
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="exhibitor-view">

    <p>
        <?= Html::a(Yii::t('common', 'update'), ['update', 'id' => $model->id], ['class' => 'btn btn-primary']) ?>
        <?= Html::a(Yii::t('common', 'delete'), ['delete', 'id' => $model->id], [
            'class' => 'btn btn-danger',
            'data' => [
                'confirm' => Yii::t('common', 'are_you_sure_you_want_to_delete_this_item?'),
                'method' => 'post',
            ],
        ]) ?>
    </p>

    <?= DetailView::widget([
        'model' => $model,
        'attributes' => [
            //'id',
            'name',
            'logo:image',
            'telphone',
            'url:url',
            'postcode',
            'province',
            'city',
//            'province_id',
//            'city_id',
            'address',
            'intro:html',
            'contact_user',
            'contact_mobile',
            'contact_job',
            'product',
//            'industry_id',
            'industry',
            'start_time',
            'registered_capital',
            'license:image',
            'order',
            [
                'attribute' => Yii::t('common', 'status'),
                'value' => \common\helpers\TStringHelper::getStatusText($model->status)
            ],
        ],
        'template' => '<tr><th width="100px">{label}</th><td>{value}</td></tr>',
    ]) ?>

</div>
